MailPoet\Subscribers\SubscribersRepository A

Total Complexity 58
Dependencies 15
Dependents 66
Total lines 544
Lines of code 410
Logical lines of code 133
Comment lines 63
Methods 37
Properties 3

Methods 37

Method Rating Maintainability Complexity Lines of code
addSubscribersToSegment()
S
53 3 23
bulkDelete()
S
48 2 36
getWooCommerceSegmentSubscriber()
S
57 2 17
removeSubscribersFromAllSegments()
S
58 2 16
maybeUpdateLastClickAt()
S
66 3 9
maybeUpdateLastPurchaseAt()
S
66 3 9
maybeUpdateLastPageViewAt()
S
66 3 9
maybeUpdateLastEngagement()
S
67 3 8
maybeUpdateLastOpenAt()
S
66 3 9
bulkRestore()
S
59 2 15
bulkTrash()
S
60 2 14
bulkUpdateLastSendingAt()
S
60 2 14
bulkRemoveFromSegment()
S
60 2 13
getListLevelCountsOfSubscribedAfter()
S
57 1 18
getListLevelCountsOfUnsubscribedAfter()
S
59 1 16
woocommerceUserExists()
S
60 1 15
bulkMoveToSegment()
S
66 2 9
getCurrentWPUser()
S
68 2 7
findExclusiveSubscribersBySegment()
S
61 1 13
getCountOfUnsubscribedAfter()
S
62 1 12
bulkUnsubscribe()
S
62 1 12
findByUpdatedScoreNotInLastMonth()
S
62 1 12
getCountOfLastSubscribedAfter()
S
64 1 11
getUndeletedSubscribersEmailsByIds()
S
65 1 10
getMaxSubscriberId()
S
68 1 8
__construct()
S
73 1 5
findWpUserIdAndEmailByEmails()
S
68 1 8
findIdsOfDeletedByEmails()
S
66 1 9
findIdAndEmailByEmails()
S
68 1 8
getEntityClassName()
S
82 1 3
bulkAddToSegment()
S
73 1 5
bulkRemoveFromAllSegments()
S
73 1 5
findBySegment()
S
66 1 9
invalidateTotalSubscribersCache()
S
81 1 3
getCountOfSubscribersForStates()
S
65 1 10
getTotalSubscribers()
S
70 1 7
getCurrentDateTime()
S
79 1 3